package table

type Photoelectric struct {
	CommentHeader
	DetectionDistance     string `json:"DetectionDistance" gorm:"type:text;column:DetectionDistance;comment:检测距离"`
	StandardDetectionBody string `json:"StandardDetectionBody" gorm:"type:text;column:StandardDetectionBody;comment:标准检测体"`
	LaunchAngle           string `json:"LaunchAngle" gorm:"type:text;column:LaunchAngle;comment:发射角度"`
	SpotSize              string `json:"SpotSize" gorm:"type:text;column:SpotSize;comment:光斑大小"`
	PowerSupplyVoltage    string `json:"PowerSupplyVoltage" gorm:"type:text;column:PowerSupplyVoltage;comment:电源电压"`
	LoadCurrent           string `json:"LoadCurrent" gorm:"type:text;column:LoadCurrent;comment:负载电流"`
	VoltageDrop           string `json:"VoltageDrop" gorm:"type:text;column:VoltageDrop;comment:压降"`
	LightSourceType       string `json:"LightSourceType" gorm:"type:text;column:LightSourceType;comment:光源类型"`
	ProtectionCircuit     string `json:"ProtectionCircuit" gorm:"type:text;column:ProtectionCircuit;comment:保护回路"`
	ResponseTime          string `json:"ResponseTime" gorm:"type:text;column:ResponseTime;comment:响应时间"`
	OperatingTemperature  string `json:"OperatingTemperature" gorm:"type:text;column:OperatingTemperature;comment:工作温度"`
	StorageTemperature    string `json:"StorageTemperature" gorm:"type:text;column:StorageTemperature;comment:储存温度"`
	ProtectionLevel       string `json:"ProtectionLevel" gorm:"type:text;column:ProtectionLevel;comment:防护等级"`
	ProductCertification  string `json:"ProductCertification" gorm:"type:text;column:ProductCertification;comment:产品认证"`
	ShellMaterial         string `json:"ShellMaterial" gorm:"type:text;column:ShellMaterial;comment:外壳材质"`
	LensMaterial          string `json:"LensMaterial" gorm:"type:text;column:LensMaterial;comment:透镜材质"`
	Weight                string `json:"Weight" gorm:"type:text;column:Weight;comment:重量"`
	ConnectionMethod      string `json:"ConnectionMethod" gorm:"type:text;column:ConnectionMethod;comment:连接方式"`
	Accessories           string `json:"Accessories" gorm:"type:text;column:Accessories;comment:附件"`

	RatedDistance           string `json:"RatedDistance" gorm:"type:text;column:RatedDistance;comment:额定距离 Sn"`
	LightSource             string `json:"LightSource" gorm:"type:text;column:LightSource;comment:光源"`
	OutlineSpecification    string `json:"OutlineSpecification" gorm:"type:text;column:OutlineSpecification;comment:外形规格"`
	OutputMethod            string `json:"OutputMethod" gorm:"type:text;column:OutputMethod;comment:输出方式"`
	MinimumDetectionBody    string `json:"MinimumDetectionBody" gorm:"type:text;column:MinimumDetectionBody;comment:最小检测体"`
	HysteresisRange         string `json:"HysteresisRange" gorm:"type:text;column:HysteresisRange;comment:迟滞范围[%/Sr]"`
	RepeatError             string `json:"RepeatError" gorm:"type:text;column:RepeatError;comment:重复误差"`
	ResidualVoltage         string `json:"ResidualVoltage" gorm:"type:text;column:ResidualVoltage;comment:残留电压"`
	ConsumptionCurrent      string `json:"ConsumptionCurrent" gorm:"type:text;column:ConsumptionCurrent;comment:消耗电流"`
	OutputIndication        string `json:"OutputIndication" gorm:"type:text;column:OutputIndication;comment:输出指示"`
	AmbientHumidity         string `json:"AmbientHumidity" gorm:"type:text;column:AmbientHumidity;comment:环境湿度"`
	ImpulseWithstandVoltage string `json:"ImpulseWithstandVoltage" gorm:"type:text;column:ImpulseWithstandVoltage;comment:冲击耐压"`
	InsulationImpedance     string `json:"InsulationImpedance" gorm:"type:text;column:InsulationImpedance;comment:绝缘阻抗"`
	VibrationResistance     string `json:"VibrationResistance" gorm:"type:text;column:VibrationResistance;comment:耐振动"`
	WiringMethod            string `json:"WiringMethod" gorm:"type:text;column:WiringMethod;comment:接线方式"`

	DetectionMethod        string `json:"DetectionMethod" gorm:"type:text;column:DetectionMethod;comment:检测方式"`
	OutputMode             string `json:"OutputMode" gorm:"type:text;column:OutputMode;comment:输出方式"`
	DistanceAdjustment     string `json:"DistanceAdjustment" gorm:"type:text;column:DistanceAdjustment;comment:距离调节"`
	OutputStatus           string `json:"OutputStatus" gorm:"type:text;column:OutputStatus;comment:输出状态"`
	OperatingVoltage       string `json:"OperatingVoltage" gorm:"type:text;column:OperatingVoltage;comment:工作电压"`
	CurrentConsumption     string `json:"CurrentConsumption" gorm:"type:text;column:CurrentConsumption;comment:消耗电流"`
	MinimumDetectionObject string `json:"MinimumDetectionObject" gorm:"type:text;column:MinimumDetectionObject;comment:最小检测体"`
	Indicators             string `json:"Indicators" gorm:"type:text;column:Indicators;comment:指示灯"`
	AmbientLightResistance string `json:"AmbientLightResistance" gorm:"type:text;column:AmbientLightResistance;comment:抗环境光"`
	HumidityRange          string `json:"HumidityRange" gorm:"type:text;column:HumidityRange;comment:湿度范围"`
	ComplianceStandard     string `json:"ComplianceStandard" gorm:"type:text;column:ComplianceStandard;comment:符合标准"`
	ProductionStandard     string `json:"ProductionStandard" gorm:"type:text;column:ProductionStandard;comment:生产标准"`
	Material               string `json:"Material" gorm:"type:text;column:Material;comment:材质"`
}

func (photo Photoelectric) TableName() string {
	return "photoelectric"
}
